<template>
	<view>
	    <view class="agr-item" v-for="item in agrlist" @tap="jump(item.url,info)" >
	        <text>{{item.title}}</text>
	        <text class="u-iconfont uicon-arrow-right u-m-l-10" style="color: #999"></text>
	    </view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			agrlist:[
				{title:'租赁服务协议',url:'/pages/user/agreementList/agreement'},
				{title:'用户授权协议',url:'/pages/user/agreementList/userAuth'},
				{title:'用户注册协议',url:'/pages/user/agreementList/userRegis'},
				{title:'用户隐私协议',url:'/pages/user/agreementList/userPriva'},
				// {title:'征信授权协议',url:'/pages/user/agreementList/userCredit'},
				// {title:'担保协议',url:'assurance'},
			],
			info:{}
		};
	},
	onLoad(query) {
		if(query.param){
			this.info=JSON.parse(decodeURIComponent(query.param))
		}
	},
	methods: {
		jump(path, parmas) {
			uni.navigateTo({
				url: `${path}?param=${encodeURIComponent(JSON.stringify(parmas))}`
			})
		},
	}
}
</script>

<style lang="scss" scoped>
	.agr-item {
	    padding: 20rpx 15rpx;
	    background-color: #fff;
	    font-size: 28rpx;
	    color: #494949;
	    margin-bottom: 20rpx;
	    display: flex;
	    justify-content: space-between;
	    align-items: center;
	}
</style>
